package com.zx.guice;

import com.google.inject.Binder;
import com.google.inject.Module;

/**  
 * @author zhaoxiang  
 * HelloGuice模块  
 */  
public class HelloGuiceModule implements Module {   
  
    /*  
     * (non-Javadoc)  
     *   
     * @see com.google.inject.Module#configure(com.google.inject.Binder)  
     */  
    public void configure(Binder binder) {   
        binder.bind(HelloGuice.class).to(HelloGuiceImpl.class);   
//        binder.bind(UserInfo.class).to(UserInfo.class); //不可以自己绑定自己  
    }   
}  